package com.aaa.util;

/**
 * fileName:ResultStatus
 * description:
 * author:MT
 * createTime:2020/1/11 9:47
 * version:1.0.0
 */
public enum ResultStatus {
    SUCCESS(200,"ok"),//成功
    FAIL(500,"内部错误"),//失败
    UNFOUND(404,"数据找不到");//找不到

    private int code;
    private String msg;

    private ResultStatus(int code, String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
